package com.patterns.connection;


public class NetworkConnection implements Connection{

	protected static final int DEFAULT_PORT = 2013; 
	protected int port;
	protected Thread myThread;
	
	protected NetworkConnection(int port) {
		this.port = port;
	}
	
	protected NetworkConnection(){
		this(DEFAULT_PORT);
	}
	
	public void shutDown(){
		myThread.interrupt();
	}

	
}
